import request from '@/utils/request'

// 查询商家提现记录列表
export function listDrawal(query) {
  return request({
    url: '/order/drawal/list',
    method: 'get',
    params: query
  })
}

// 查询商家提现记录详细
export function getDrawal(id) {
  return request({
    url: '/order/drawal/' + id,
    method: 'get'
  })
}

// 新增商家提现记录
export function addDrawal(data) {
  return request({
    url: '/order/drawal',
    method: 'post',
    data: data
  })
}

// 修改商家提现记录
export function updateDrawal(data) {
  return request({
    url: '/order/drawal',
    method: 'put',
    data: data
  })
}

// 删除商家提现记录
export function delDrawal(id) {
  return request({
    url: '/order/drawal/' + id,
    method: 'delete'
  })
}
